package cn.luischen.aspect;

<<<<<<< HEAD
import cn.luischen.service.log.LogService;
import java.util.Arrays;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.aspectj.lang.annotation.AfterReturning;
import org.springframework.web.context.request.RequestContextHolder;
import javax.servlet.http.HttpServletRequest;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.JoinPoint;
import org.slf4j.Logger;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

import org.powermock.reflect.Whitebox;
import org.mockito.Mock;
import static org.junit.Assert.fail;
import org.junit.runner.RunWith;
import java.util.HashMap;
import java.util.ArrayList;
import org.mockito.MockitoAnnotations;
import com.alibaba.fastjson.JSONArray;
import org.junit.After;
import org.powermock.core.classloader.annotations.PrepareForTest;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import java.lang.reflect.Method;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.junit.Test;
import static org.junit.Assert.*;
import com.unitspirit.runtime.*;
import org.mockito.Mockito;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import org.junit.Rule;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import static org.junit.Assert.assertTrue;
import com.alibaba.fastjson.parser.ParserConfig;

/**
* The class <code>WebLogAspectTest</code> contains tests for the class <code>{@link WebLogAspect}</code>.
* Copyright (c) 2020
* 
* @generatedBy UnitSpirit at 2021-09-07 17:51:27
* @version 1.0.20210903
*/

@PowerMockIgnore({ "javax.management.*" })
public class WebLogAspect_doAfterReturning_WGTest {

	@InjectMocks
	cn.luischen.aspect.WebLogAspect unitspirit_fixture;
	@Mock
	cn.luischen.service.log.LogService mock_LogService;

=======
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import cn.luischen.service.log.LogService;

import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.junit.Rule;
import org.junit.runner.RunWith;
import org.junit.rules.ExpectedException;
import org.junit.Test;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.lang.reflect.Method;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.parser.ParserConfig;
import java.util.Map;
import java.util.List;
import com.unitspirit.runtime.*;

/**
 * The class contains tests for the class cn.luischen.aspect.WebLogAspect.
 *
 * @generatedBy UnitSpirit CreateTemplateTestFile4
 * @version 1.0.9.11 
 */
@PowerMockIgnore({ "javax.management.*" })
public class WebLogAspect_doAfterReturning_WGTest {
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
<<<<<<< HEAD
	* 测试方法初始化.
	* 
	* @throws Exception 
	*         if the initialization fails for some reason 
	*  
	* @generatedBy UnitSpirit at 2021-09-07 17:51:27
	*/
=======
	 * 测试方法初始化.
	 * 
	 * @throws Exception 
	 *         if the initialization fails for some reason 
	 *  
	 * @generatedBy UnitSpirit at 2021-12-06 21:50:23
	 */
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
	@org.junit.Before
	public void setUp() throws Exception {
		try {
			GlobalUnitInit.init();
			MockitoAnnotations.initMocks(this);
			ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

<<<<<<< HEAD
	/**
	* @date 2021-09-07 17:51:27
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_0113_190010_183_1_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "admin/login";
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_0113_190013_202_1_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "{\"code\":\"success\"}";
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_0113_190013_202_16_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "{\"code\":\"success\"}";
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_0113_190013_782_13_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "admin/index";
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_0113_190016_887_1_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "admin/profile";
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_20210331_175301_101_1_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "admin/comment_list";
=======
	@InjectMocks
	cn.luischen.aspect.WebLogAspect unitspirit_fixture;

	@Mock
	cn.luischen.service.log.LogService mock_LogService;

	/**
	 * @date 2021-12-06 21:50:23
	 * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	 * @category null  
	 * @author null  
	 */
	@Test
	public void test_doAfterReturning_20211109_110223_933_1_01()
			throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "site/index";
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
<<<<<<< HEAD
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
=======
		Whitebox.setInternalState(unitspirit_fixture, "startTime",
				m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3",
				m_un_startTime3);
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
<<<<<<< HEAD
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_20210722_100103_549_1_01() throws Throwable {
=======
	 * @date 2021-12-06 21:50:23
	 * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	 * @category null  
	 * @author null  
	 */
	@Test
	public void test_doAfterReturning_20211109_110315_768_1_01()
			throws Throwable {
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//被测函数参数定义
		Object Object_p_0 = "admin/login";
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
<<<<<<< HEAD
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
=======
		Whitebox.setInternalState(unitspirit_fixture, "startTime",
				m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3",
				m_un_startTime3);
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
<<<<<<< HEAD
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_20210722_100105_201_1_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "{\"code\":\"success\"}";
=======
	 * @date 2021-12-06 21:50:23
	 * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	 * @category null  
	 * @author null  
	 */
	@Test
	public void test_doAfterReturning_20211109_110317_805_1_01()
			throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "{\"msg\":\"\",\"code\":\"fail\"}";
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
<<<<<<< HEAD
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
=======
		Whitebox.setInternalState(unitspirit_fixture, "startTime",
				m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3",
				m_un_startTime3);
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}

	/**
<<<<<<< HEAD
	* @date 2021-09-07 17:51:28
	* @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_doAfterReturning_20210722_100107_175_1_01() throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "admin/setting";
=======
	 * @date 2021-12-06 21:50:24
	 * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
	 * @category null  
	 * @author null  
	 */
	@Test
	public void test_doAfterReturning_20211111_133509_608_1_01()
			throws Throwable {
		//被测函数参数定义
		Object Object_p_0 = "{\"msg\":\"您输入密码已经错误超过3次，请10分钟后尝试\",\"code\":\"fail\"}";
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//成员变量设置

		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
<<<<<<< HEAD
		Whitebox.setInternalState(unitspirit_fixture, "startTime", m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3", m_un_startTime3);
=======
		Whitebox.setInternalState(unitspirit_fixture, "startTime",
				m_un_startTime);
		ThreadLocal<Long[]> m_un_startTime3 = new ThreadLocal<>();
		m_un_startTime3.set(new Long[] { 1L, 2L });
		Whitebox.setInternalState(unitspirit_fixture, "startTime3",
				m_un_startTime3);
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.doAfterReturning(Object_p_0);
		assertTrue(true);
	}
}
